<?php 
session_start();
	if (isset($_SESSION['nombre'])){
require_once('Connections/tecno.php'); 
// session_start();
mysql_select_db($database_tecno, $tecno);
$cliente = $_SESSION['idCliente'];
	$query_Cliente = "SELECT * FROM datospersonales WHERE id ='$cliente'";
	$Cliente = mysql_query($query_Cliente, $tecno) or die(mysql_error());
	$row_Cliente = mysql_fetch_assoc($Cliente);
	$totalRows_Cliente = mysql_num_rows($Cliente);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cuenta de Usuario</title>
<link href="css/demo_jconfirmaction.css" rel="stylesheet" type="text/css" />
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="js/themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/ui/ui.core.js"></script>
<script type="text/javascript" src="js/jconfirmaction.jquery.js"></script>
<script type="text/javascript" src="js/ui/ui.tabs.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<script src="js/ui/ui.datepicker.js"></script>
<script src="js/ui/i18n/ui.datepicker-es.js"></script>

<style type="text/css">
  a{text-decoration: none;}
  .mostrar{}
  label input{}
  td{ text-align:right;}
.sendBtn {width:85px;height:24px;text-align:center;background: url(images/submit-btn-bg.gif) repeat-x 0 0;color:#5f5f5f;		border:1px solid #aaa;float:right;display:block;cursor:pointer;font-weight:bold;margin:5px 0 0 0;padding:0 0 4px 0;-moz-border-radius:6px;-webkit-border-radius:3px;}
.sendBtn:hover { background:url(images/submit-btn-bg-hover.gif) repeat-x 0 0; color:#ffffff; border:1px solid #5f5f5f;}
</style>

<script type="text/javascript">
$(document).ready(function(){
$("#fechaPago").datepicker();

/* $("#enviar").click(function(){
	$.post('reportePago.php', $("#report").serialize(),function(data){	
		$("#respuesta").html(data);	
	});			
}); */


$("#tabs").tabs();
});
</script>
</head>
<body>
<div id="main" style="width:900px; height:500px;">
	<div id="header">
	  <h2>Tecnoinversiones RB &nbsp; Clientes</h2>
      <h3 style="font-size:16px;"><b>Bienvenido<?php echo " ".$_SESSION['nombre']."!";?></b></h3>
    </div>
      <!--inicio div content-right -->
      <div id="content-right" style="margin-top:100px; margin-left:50px; float:left; width:860px;">
   <div class="demo">
      <div id="tabs">
            <ul>
                <li><a href="#tabs-1">Datos Personales</a></li>
                <li><a href="det_pagos.php?id=<?php echo $_SESSION['idCliente']; ?>">Pagos</a></li>
                <li><a href="#tabs-3">Reportar Pagos</a></li>
                <li><a  href="det_pagos1.php?id=<?php echo $_SESSION['idCliente']; ?>">Pagos Reportados</a></li>
                <li><a href="det_Cliente.php?id=<?php echo $_SESSION['idCliente']; ?>">Productos</a></li>
                <li><a href="#tabs-6">Estado de Cuenta</a></li>
                <!--<li><a href="reportes/detalleCuenta.php?id=<?php// echo $_SESSION['idCliente']; ?>" target="_blank">Estado de Cuenta</a></li>-->
                <li><a href="close.php">Cerrar Sesión</a></li>
            </ul>
        <div id="tabs-1" style="height:auto; min-height:240px; text-align:center;">
        
    <div id="datos" class="">
<table width="627" cellspacing="4" style="margin-left:30px;">
<tr>
  <td width="123"><label for="cedula" class="">C&eacute;dula:</label></td>
  <td width="148"><input type="text" id="cedula" name="cedula" disabled="disabled" value="<?php echo $row_Cliente['cedula'];?>" /></td>
  <td width="29" rowspan="3">&nbsp;</td>
  <td valign="top">Teléfono:</td>
  <td width="144"><input type="text" name="telefono" disabled="disabled" style="margin:0px;" value="<?php echo $row_Cliente['telefono'];?>" /></td>
  <td width="40">&nbsp;</td>
</tr>
<tr>
  <td><label for="nombres" class="">Nombres:</label></td>
  <td><input name="nombres" type="text" disabled="disabled" value="<?php echo $row_Cliente['nombres'];?>" /></td>
  <td valign="top">Celular:</td>
  <td><input type="text" name="celular" disabled="disabled" value="<?php echo $row_Cliente['celular'];?>" /></td>
  <td>&nbsp;</td>
</tr>
<tr>
  <td>Primer Apellido:</td>
  <td><input type="text" name="primerApellido" disabled="disabled" value="<?php echo $row_Cliente['primerApellido'];?>" /></td>
  <td valign="top">Email:</td>
  <td><input type="text" name="email" disabled="disabled" value="<?php echo $row_Cliente['email'];?>" /></td>
  <td>&nbsp;</td>
</tr>
<tr>
  <td><label for="segundoApellido" class="">Segundo Apellido:</label></td>
  <td><input type="text" name="segundoApellido" disabled="disabled" value="<?php echo $row_Cliente['segundoApellido'];?>" /></td>
  <td colspan="2">Dirección Actual:</td>
  <td colspan="2" rowspan="3" align="left" valign="top"><textarea name="direccionHab" cols="25" disabled="disabled"><?php echo $row_Cliente['direccionHab'];?></textarea></td>
  </tr>
<tr>
  <td>Sexo:</td>
  <td><input type="text" name="sexo" disabled="disabled" value="<?php echo $row_Cliente['sexo'];?>" /></td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  </tr>
<tr>  
  <td>Nacionalidad</td>
  <td><input type="text" name="nacionalidad" disabled="disabled" value="<?php echo $row_Cliente['nacionalidad'];?>" /></td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  </tr>
<tr>  
  <td><label for="fechaNac2" class="">Fecha de Nac.:</label></td>
  <td><input type="text" name="fechaNac" disabled="disabled" value="<?php echo $row_Cliente['fechaNac'];?>" /></td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr>  
  <td><label for="paisNac2" class="">País de Nac.:</label></td>
  <td><input type="text" name="paisNac" disabled="disabled" value="<?php echo $row_Cliente['paisNac'];?>" /></td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr>  
  <td><label for="estadoNac2" class="">Estado de Nac.:</label></td>
  <td><input type="text" name="estadoNac" disabled="disabled" value="<?php echo $row_Cliente['estadoNac'];?>" /></td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr>  
  <td><label for="ciudadNac2" class="">Ciudad de Nac.:</label></td>
  <td><input type="text" name="ciudadNac" disabled="disabled" value="<?php echo $row_Cliente['ciudadNac'];?>" /></td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr>  
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
</tr>
<tr>  
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
</tr>


</table>  
    </div>    
   
	</div><!--fin div tabs-1 -->
    <div id="tabs-3">
    	<?php include('formReportCliente.php');?>             
    </div>
    <div id="tabs-6" style="height:350px; padding-left:240px;">
    	<a style="margin-top:100px;" class="botonGrande" href="reportes/detalleCuenta.php?id=<?php echo $_SESSION['idCliente']; ?>" target="_blank">Imprimir Estado de Cuenta</a>         
    </div>
        </div> <!--fin div tabs -->
        
        </div><!--fin div demo -->
         
      </div> <!--fin div conten-right -->
     
     </div> <!--fin div main -->
     
<!--</div> -->

</body>
</html>
<?php }else{
		include('error.php');
	}
?>